package com.sxt.model;

import java.io.Serializable;
import java.util.List;

/**
 * 分页包装对象
 * 
 * @author Liushuangxi
 * @param <T>
 */
public class PageBean<T> implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6857172403026778421L;

	// 当前页
	private Integer currentPage;

	// 每页数量
	private Integer size;

	// 总条数
	private long total;

	// 数据
	private List<T> data;

	public PageBean(Integer currentPage, Integer size, long total, List<T> data) {
		super();
		this.currentPage = currentPage;
		this.size = size;
		this.total = total;
		this.data = data;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

}
